#include "contrl_logic.h"

ContrlLogic * ContrlLogic::controlLogic = new ContrlLogic;

void ContrlLogic::init()
{

}

QList<DeptNode> ContrlLogic::selectDeptQuery(QString sql)
{
    return DBManager::getInstance()->selectDeptQuery(sql);
}

QList<QList<QString>> ContrlLogic::selectAllUserInfo(QString sql)
{
    return DBManager::getInstance()->select(sql);
}

QSqlDatabase ContrlLogic::getDataDBClient()
{
    return QSqlDatabase();//DBManager::getInstance()->getDataDBClient();
}

ContrlLogic::ContrlLogic(QObject *parent) : QObject(parent)
{

}
